package com.jamin.demo;

import com.jamin.demo.activity.FirstActivity;
import com.jamin.demo.hanzitopinyin.HanziToPinyinTestActivity;
import com.jamin.demo.pathmenu.PathMenuActivity;
import com.jamin.demo.phone_info.AndroidSystemInfoActivity;
import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class AndroidBaseDemoActivity extends LauncherActivity{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this , android.R.layout.simple_list_item_1 , names);
		setListAdapter(adapter);
	}

	@Override
	protected Intent intentForPosition(int position) {
		return new Intent(AndroidBaseDemoActivity.this , clazzs[position]);
	}
	
	Class<?> [] clazzs = { HanziToPinyinTestActivity.class ,
						   FirstActivity.class , 
						   AndroidSystemInfoActivity.class,
						   ResourcesTestActivity.class,
						   PathMenuActivity.class
	};
	
	String [] names = { "汉字TO拼音",
						"Activity切换效果",
						"手机系统状态",
						"渐变，圆角等处理",
						"PathMenu菜单"
	};

}